.welcome-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.welcome-content {
    text-align: center;
    padding: 3rem;
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.welcome-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 2rem;
}

.welcome-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.welcome-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    min-width: 160px;
}

.welcome-button:hover {
    transform: translateY(-2px);
}

.docs-button {
    background-color: #3498db;
    color: white;
}

.docs-button:hover {
    background-color: #2980b9;
}

.editor-button {
    background-color: #2ecc71;
    color: white;
}

.editor-button:hover {
    background-color: #27ae60;
}

@media (max-width: 768px) {
    .welcome-content {
        padding: 1rem;
    }

    .welcome-content h1 {
        font-size: 2rem;
    }

    .welcome-content p {
        font-size: 1rem;
    }

    .welcome-buttons {
        flex-direction: column;
    }

    .welcome-button {
        width: 100%;
    }
}

/* 添加标题交互样式 */
.welcome-title {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.welcome-title:active {
    transform: scale(0.98);
}

/* 添加点击提示动画 */
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.welcome-title.clicked {
    animation: clickPulse 0.2s ease;
}

/* 修改Logo触发区域 */
.logo-trigger {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Logo基础样式 */
.hidden-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: logoReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 
        0 4px 15px rgba(44, 62, 80, 0.1),
        0 8px 30px rgba(52, 152, 219, 0.1);
    backdrop-filter: blur(10px);
}

/* Logo文字容器 */
.logo-text {
    font-family: 'Playfair Display', serif;
    letter-spacing: 4px;
    cursor: default;
    transform-origin: center;
    animation: textGlow 2s ease-in-out infinite alternate;
    position: relative;
    padding: 0 5px;
}

/* S字母样式 */
.logo-s {
    color: #2c3e50;
    font-weight: 800;
    font-size: 32px;
    font-style: italic;
    text-shadow: 
        2px 2px 0px #ffffff,
        4px 4px 0px rgba(44, 62, 80, 0.2),
        -1px -1px 0 rgba(255, 255, 255, 0.5),
        0 0 20px rgba(52, 152, 219, 0.3);
    display: inline-block;
    transform-origin: center;
    animation: sReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* loaner文字样式 */
.logo-rest {
    background: linear-gradient(135deg, #34495e, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 3px;
    opacity: 0;
    animation: restReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

/* 分隔线样式 */
.logo-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #3498db,
        #2ecc71,
        #3498db,
        transparent
    );
    animation: lineGrow 0.6s ease-out 0.8s forwards;
}

/* 副标题样式 */
.logo-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #7f8c8d;
    opacity: 0;
    transform: translateY(5px);
    animation: subtitleReveal 0.5s ease 1s forwards;
    font-style: italic;
    letter-spacing: 1px;
}

/* 添加新的副标题动画 */
@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* 修改Logo整体显示动画 */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.1);
        filter: blur(5px);
    }
    75% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* S字母动画 */
@keyframes sReveal {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(20deg) scale(1.2);
    }
    100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* loaner文字显示动画 */
@keyframes restReveal {
    0% {
        opacity: 0;
        transform: translateX(-20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* 分隔线生长动画 */
@keyframes lineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 120%;
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

/* 文字光晕效果 */
@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(52, 152, 219, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.6));
    }
}

/* 悬停效果 */
.hidden-logo:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 6px 20px rgba(44, 62, 80, 0.15),
        0 10px 40px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.hidden-logo:hover .logo-text {
    transform: translateY(-2px);
}

.hidden-logo:hover .logo-s {
    animation: glowPulse 2s infinite;
}

.hidden-logo:hover .logo-line {
    background: linear-gradient(90deg, 
        transparent,
        #2ecc71,
        #3498db,
        #2ecc71,
        transparent
    );
    width: 110%;
    transition: all 0.3s ease;
}

/* 添加新的光晕脉冲动画 */
@keyframes glowPulse {
    0% {
        text-shadow: 
            2px 2px 0px #ffffff,
            4px 4px 0px rgba(44, 62, 80, 0.2),
            0 0 20px rgba(52, 152, 219, 0.3);
    }
    50% {
        text-shadow: 
            2px 2px 0px #ffffff,
            4px 4px 0px rgba(44, 62, 80, 0.3),
            0 0 30px rgba(52, 152, 219, 0.5);
    }
    100% {
        text-shadow: 
            2px 2px 0px #ffffff,
            4px 4px 0px rgba(44, 62, 80, 0.2),
            0 0 20px rgba(52, 152, 219, 0.3);
    }
}